package demo

import (
	"net/http"

	"github.com/gin-gonic/gin"
)

type Demo2Controller struct{}

func (c *Demo2Controller) Register(r gin.IRouter) {

	r.GET("/demo2/hello", c.hello)
}

func (c *Demo2Controller) hello(ctx *gin.Context) {
	ctx.String(http.StatusOK, "demo2 Hello World!")
}
